package com.toocms.jinjuhang.dialog.save_receiver_address

import androidx.databinding.ObservableField
import com.toocms.tab.binding.command.BindingAction
import com.toocms.tab.binding.command.BindingCommand

class SaveReceiverAddressModel(val dialog: SaveReceiverAddressDialog) {
    val addressObservableField = ObservableField<String>()

    val passiveClickBindingCommand = BindingCommand<BindingAction>(BindingAction {
        dialog.dismiss()
        dialog.onPassiveClickListener?.invoke(dialog.tag)
    })

    val positiveClickBindingCommand = BindingCommand<BindingAction>(BindingAction {
        dialog.dismiss()
        dialog.onPositiveClickListener?.invoke(dialog.tag)
    })

}